﻿using static System.Console;

string firstName = "jack";
string lastName = "Tom";
WriteLine(firstName + " " + lastName);

char[] letters = { 'a', 'b', 'c', 'd', 'd' };
string greetings = new string(letters);
WriteLine($"Greetings:{greetings}");

string[] arrString = { "hello", "world", "ahao", "kkk" };
string msg = String.Join(" ", arrString);
WriteLine(msg);

string str = "a,b,c";
string[] strs = str.Split(',');
foreach (var item in strs)
{
    WriteLine(item);
}

ReadLine();